package collections.lecture19;

/**
 * Created with IntelliJ IDEA.
 * User: Bogdan
 * Date: 24.03.13
 * Time: 22:57
 * To change this template use File | Settings | File Templates.
 */
public class User {

    private int age;
    private String name;

    User(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return String.format("User{age=%d name=%s}", age, name);
    }
}
